-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: disclosure #1068
base: main
Are you sure you want to change the base?
feat: disclosure #1068
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to update plugins/ui/src/js/package.json
to use the v102 versions of the @deephaven/
packages that include Disclosure to fix the build errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add Disclosure to e2e tests as well. Would be cool to add your own e2e test instead of the render_all catchall.
tests/app.d/ui_render_all.py
Outdated
@@ -71,6 +71,7 @@ def ui_components1(): | |||
ui.flex("Flex default child A", "Flex default child B"), | |||
ui.flex("Flex column child A", "Flex column child B", direction="column"), | |||
ui.form("Form"), | |||
ui.disclosure(title="Heading", panel="Content"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I add this do I not need to update the e2e snapshots? I ran the command locally and no snapshots were updating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be too many components in that panel, causing yours to be in the overflow and not showing in the snapshot. Try adding it to one of the other panels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this did the trick thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Eric mentioned, you'll need to add it to another panel and update the snapshots for the e2e tests. Or add it as a separate component and add a new test for it.
Closes #1037